package com.zth.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class BBB {
    @PostMapping("checkUsername")
    @ResponseBody
    public String checkUsername(String name){
        if (name.equals("zs")){
            return "1";
        }else {
            return "0";
        }
    }
}
